<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include("includes/appheader.php");
include("includes/functions.php");

$id=$_GET['id'];
$type=$_GET['type'];

$property=getApartment($id);

?>
    <table height="150px" width="300px" border="0">
        <tr bgcolor="#cbe1f6">
            <td align="left" width="190px"> <b><?php echo $property['offertype']." ".$property['type']; ?></b></td>
            <td align="right" width="110px"> <b><?php echo $property['price']; ?> YTL</b></td>
        </tr>
        <tr>
            <td valign="top">
                <table width="100%" border="0">
                    <tr bgcolor="whitesmoke">
                        <td align="left"><b>Alan</b></td>
                        <td><?php echo $property['area']; ?> m2</td>
                    </tr>
                    <tr bgcolor="lightsteelblue">
                        <td align="left"><b>Kayit Tarihi</b></td>
                        <td><?php echo $property['registerdate']; ?></td>
                    </tr>
                    <tr bgcolor="whitesmoke">
                        <td align="left"><b>Kayit Tarihi</b></td>
                        <td><?php echo $property['registerdate']; ?></td>
                    </tr>
                    <tr bgcolor="lightsteelblue">
                        <td align="left"><b>Kayit Tarihi</b></td>
                        <td><?php echo $property['registerdate']; ?></td>
                    </tr>
                    <tr bgcolor="whitesmoke">
                        <td align="left"><b>Kayit Tarihi</b></td>
                        <td><?php echo $property['registerdate']; ?></td>
                    </tr>
                    <tr bgcolor="lightsteelblue">
                        <td align="left"><b>Kayit Tarihi</b></td>
                        <td><?php echo $property['registerdate']; ?></td>
                    </tr>
                </table>
            </td>
            <td>Photo</td>
        </tr>

    </table>